﻿/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#include "thread_lock.h"

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 

namespace xos
{

    thread_lock::thread_lock()
    {
    }

    thread_lock::~thread_lock()
    {
    }

    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // method

    int thread_lock::un_lock()
    {
        int nRet = 0;
        m_lock.un_lock();
        return nRet;
    }

    int thread_lock::lock()
    {
        int nRet = 0;
        m_lock.lock();
        return nRet;
    }

} // xos
